﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ManAndTV
{
    public class Control
    { 
        
        public void PowerButton(TV tv)
        {
            tv.Power();
        }

        public void UpButton(TV tv)
        {
            tv.ChangeChanelForward();
        }

        public void DownButton(TV tv)
        {
            tv.ChangeChanelBack();
        }

        public void NumberButtons(TV tv, int ChanelNumber)
        {
            if(ChanelNumber < 100 && ChanelNumber != 0)
            {
                tv.ChangeChanelToEnteringNumber(ChanelNumber);
            }

        }

        public void RightButton(TV tv)
        {
            tv.IncreaseVolume();
        }

        public void LeftButton(TV tv)
        {
            tv.DecreaseVolume();
        }

    }
}
